<template>
  <div class="technologydataEdit">
    <div class="technologydataEdit-top">
      <div class="technologydataEdit-top-img">
        <el-image
          :src="row.image[0]"
          fit="fill"
          :lazy="true"
        ></el-image>
      </div>
      <div class="technologydataEdit-top-content">
        <div>品名：{{row.type_name}}</div>
        <div>{{row.type_no}}</div>
      </div>
    </div>

    <div class="technologydataEdit-content">
      <el-tabs v-model="activeName">
        <el-tab-pane label="工艺单相关文件" name="first">
          <processreport :type_no="row.type_no"></processreport>
        </el-tab-pane>
        <el-tab-pane label="封样报告相关文件" name="second"
          >
            <processreportsample :type_no="row.type_no"></processreportsample>
          </el-tab-pane
        >
      </el-tabs>
    </div>
  </div>
</template>

<script>
import processreport from "@/components/processreport.vue";
import processreportsample from "@/components/processreportsample.vue";

export default {
  components: {
    processreport,
    processreportsample
  },
  data() {
    return {
        row:"",
      activeName: "first",

    };
  },
  mounted(){
    this.row = this.$route.query
  },
  methods:{
    
  }
  
};
</script>

<style lang="scss" scoped>
.technologydataEdit {
  .technologydataEdit-top {
    display: flex;
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    align-items: center;
    .technologydataEdit-top-img {
      > .el-image {
        width: 60px;
        height: 60px;
        margin-right: 10px;
      }
    }
    .technologydataEdit-top-content {
      > div:nth-child(2) {
        margin-top: 10px;
        font-size: 14px;
        color: #888;
      }
    }
  }
  .technologydataEdit-content {
    margin-top: 20px;
    background: #fff;
    border-radius: 8px;
    padding: 25px;
  }
}
</style>